<%@ page import="bidsanity.Listing" %>

<div class="fieldcontain ${hasErrors(bean: listingInstance, field: 'name', 'error')} required">
    <label for="name">
        <g:message code="listing.name.label" default="Name" />
        <span class="required-indicator">*</span>
    </label>
    <g:textField name="name" maxlength="64" required="" value="${listingInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: listingInstance, field: 'description', 'error')} ">
    <label for="description">
        <g:message code="listing.description.label" default="Description" />

    </label>
    <g:textArea name="description" cols="40" rows="5" maxlength="255" value="${listingInstance?.description}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: listingInstance, field: 'endDate', 'error')} required">
    <label for="endDate">
        <g:message code="listing.endDate.label" default="End Date" />
        <span class="required-indicator">*</span>
    </label>
    <g:datePicker name="endDate" precision="day"  value="${listingInstance?.endDate}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: listingInstance, field: 'startingBidPrice', 'error')} required">
    <label for="startingBidPrice">
        <g:message code="listing.startingBidPrice.label" default="Starting Bid Price" />
        <span class="required-indicator">*</span>
    </label>
    <g:field type="double" name="startingBidPrice" min="0.5" required="" value="${fieldValue(bean: listingInstance, field: 'startingBidPrice')}"/>
</div>

